﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using SmartSpace.Core;

namespace SsTool.Base.Windows
{
    /// <summary>
    /// Interaction logic for ViewWindow.xaml
    /// </summary>
    public partial class ViewWindow : Window
    {
        public ModuleView View { get; private set; }

        public ViewWindow()
        {
            InitializeComponent();
            View = new ModuleView();
            View.Id = Guid.NewGuid();

            this.DataContext = View;
        }

        public ViewWindow(ModuleView view)
        {
            InitializeComponent();
            View = view;

            this.DataContext = View;
        }

        private void _ctlSubmit_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
        }
    }
}
